Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
![]() |
![]() |
Note This documentation is preliminary and is subject to change.
Checks to see if the user has access to play the game in the specified GDF.
HRESULT VerifyAccess( const BSTR bstrGDFBinaryPath, BOOL* pfHasAccess );
This function returns an HRESULT. Use the SUCCEEDED and FAILED macros to test the return value of this function.
This method does not require AddGame to be called previously or at any other time. It can be used at any time to verify whether or not the current user can run a binary associated with a GDF.
Games should call this method every time they are run. This allows parental controls to work, even if the game was installed on a FAT32 volume which does not support ACLs to lock the user out of the game.
Header: Declared in GameUX.h.
Please sign in to use this experience.
Sign in